<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type => 0}, :class => 'icon icon-add') if(User.current.allowed_to?(:add_project, nil, :global => true) && @user == User.current)%>
<!--span class="font_lighter" >温馨提示：项目可以是一次作业，也可以是别人或者自己创建的一项小工程~</span-->
<%= watch_projects @state%>
<% if @watch_projects.count > 0 %>
<% for watch_project in @watch_projects %>
<table width="660" border="0" align="center" style="border-bottom: 1px dashed rgb(204, 204, 204); margin-bottom: 10px;font-size:14px;">
	<tr>
		<td colspan="2" valign="top" width="50" ><%= image_tag(url_to_avatar(watch_project.project), :class => 'avatar') %></td>
		<td>
		<table width="580" border="0">
			<tr>
				<td colspan="2" valign="top"><strong> <%= link_to_user(@user) if watch_project.respond_to?(:user) %></strong><span class="font_lighter"> <%= link_to_project(watch_project.project) %></td>
			</tr>
			<tr>
				<td colspan="2" width="580" >
				<p class="font_description">
					<%= watch_project.project.description%>
				</p></td>
			</tr>
			<tr>
				<td align="left"><span class="font_lighter"> <%= format_time(watch_project.created_on) %></span></td><!-- modified by ming -->
			</tr>
		</table></td>
	</tr>

</table>

</li>
<% end %>
<% else %>
	<%= l(:label_watch_no_projects)%>
<% end %>
